<?php

/*
    DefaultController class
    
    Author:     Alfredo Mungo
    License:    LGPL
    Copyright:  2012
*/

class DefaultController extends Controller {

    function __construct($args) {
        parent::__construct($args);
    }
    
    public function hDefault() {
        if($this->args->count() == 0) {
            if(!$this->loadView('version'))
                die('Could not display view!');
        }
        else
            Error::raise(404);
    }
}

?>